﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RTUDataAcquisition.Model
{
    public class EssDataModel
    {
        /// <summary> 设备编号 </summary>	
        public string ST { get; set; }

        /// <summary> 数据采集(观测)时间-设备时间 </summary>	
        public string TT { get; set; }

        /// <summary> 数据类型 </summary>	
        public string TYPE { get; set; }

        /// <summary> 数据自增流水号 </summary>	
        public int SERIAL { get; set; }

        /// <summary> 设备类型 </summary>	
        public int TELTYPE { get; set; }

        /// <summary> 要素</summary>	
        public string ESS { get; set; }

        /// <summary> 数据 </summary>	
        public string SDATA { get; set; }

        /// <summary> 要素数据 </summary>	
        public double? DATA { get; set; }

        /// <summary> 数据上传时间-设备时间</summary>	
        public string UT { get; set; }

        /// <summary> 数据存储时间-服务器时间</summary>	
        public string STT { get; set; }

        /// <summary></summary>	
        public string UNTT { get; set; }

        /// <summary> 要素</summary>	
        public string ESSName { get; set; }

        /// <summary>
        /// 分包处理开始时间
        /// </summary>
        public DateTime? SubPackageStartTime { get; set; }

        /// <summary>
        /// 是否在进行分包处理
        /// </summary>
        public bool IsSubPackage { get; set; }

        /// <summary>
        /// 分包数据总包数
        /// </summary>
        public int TotalPackages { get; set; }

        /// <summary>
        /// 分包数据当前包数
        /// </summary>
        public int CurrentPackage { get; set; }

        /// <summary>
        /// 分包数据
        /// </summary>
        public Dictionary<int, byte[]> DataPackages = new Dictionary<int, byte[]>();

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message { get; set; }

    }
}
